import myaxios from  '@/mytools/myaxios'
  export function AskLeavePoAdd(oneForm) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/AskLeavePoAdd',
      method: 'post',
      data: oneForm,
    })
  }

  export function BusinessTravelRequestPoAdd(twoForm) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/BusinessTravelRequestPoAdd',
      method: 'post',
      data: twoForm,
    })
  }

  
  export function FieldApplicationPoAdd(threeForm) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/FieldApplicationPoAdd',
      method: 'post',
      data: threeForm,
    })
  }


  export function NotClockPoAdd(fourForm) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/NotClockPoAdd',
      method: 'post',
      data: fourForm,
    })
  }


  export function CompanyActivitiesPoAdd(fiveForm) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/CompanyActivitiesPoAdd',
      method: 'post',
      data: fiveForm,
    })
  }
  

  export function DepartmentActivityPoAdd(sixForm) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/DepartmentActivityPoAdd',
      method: 'post',
      data: sixForm,
    })
  }
  

  
  export function WorkOvertimeLeaveAdd(sevenForm) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/WorkOvertimeLeaveAdd',
      method: 'post',
      data: sevenForm,
    })
  }
  

  export function GetAllApplicationType() {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllApplicationType',
      method: 'get',
    })
  }

  export function Edit(id) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/Edit',
      method: 'get',
      params: { id: id },
    })
  }

  export function TwoEdit(id) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/TwoEdit',
      method: 'get',
      params: { id: id },
    })
  }

  export function ThreeEdit(id) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/ThreeEdit',
      method: 'get',
      params: { id: id },
    })
  }

  export function FourEdit(id) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/FourEdit',
      method: 'get',
      params: { id: id },
    })
  }

  export function FiveEdit(id) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/FiveEdit',
      method: 'get',
      params: { id: id },
    })
  }


  export function SixEdit(id) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/SixEdit',
      method: 'get',
      params: { id: id },
    })
  }

  export function SevenEdit(id) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/SevenEdit',
      method: 'get',
      params: { id: id },
    })
  }


  ////////////////////////////////////////请假申请显示
  export function GetAllAskLeave(depname,year,month,pageIndex,pageSize) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllAskLeave',
      method: 'get',
      params: {depname:depname,year:year,month:month,pageIndex:pageIndex,pageSize:pageSize },
    })
  }
//出差
  export function GetAllBusinessTravelRequestPo(depname,year,month,pageIndex,pageSize) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllBusinessTravelRequestPo',
      method: 'get',
      params: {depname:depname,year:year,month:month,pageIndex:pageIndex,pageSize:pageSize },
    })
  }


  export function GetAllFieldApplicationPo(depname,year,month,pageIndex,pageSize) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllFieldApplicationPo',
      method: 'get',
      params: {depname:depname,year:year,month:month,pageIndex:pageIndex,pageSize:pageSize },
    })
  }

  export function GetAllNotClockPo(depname,year,month,pageIndex,pageSize) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllNotClockPo',
      method: 'get',
      params: {depname:depname,year:year,month:month,pageIndex:pageIndex,pageSize:pageSize },
    })
  }

  export function GetAllCompanyActivitiesPo(depname,year,month,pageIndex,pageSize) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllCompanyActivitiesPo',
      method: 'get',
      params: {depname:depname,year:year,month:month,pageIndex:pageIndex,pageSize:pageSize },
    })
  }


  export function GetAllDepartmentActivityPo(depname,year,month,pageIndex,pageSize) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllDepartmentActivityPo',
      method: 'get',
      params: {depname:depname,year:year,month:month,pageIndex:pageIndex,pageSize:pageSize },
    })
  }


  export function GetAllWorkOvertimeLeavePo(depname,year,month,pageIndex,pageSize) {
    return myaxios({
      url: 'SystemManager/Attendance_Management/GetAllWorkOvertimeLeavePo',
      method: 'get',
      params: {depname:depname,year:year,month:month,pageIndex:pageIndex,pageSize:pageSize },
    })
  }

//请假修改状态
export function AskLeaveAudit(status,id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/AskLeaveAudit?status='+status+'&id='+id,
    method: 'post',
  })
}

export function BusinessTravelRequestPoAudit(status,id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/BusinessTravelRequestPoAudit?status='+status+'&id='+id,
    method: 'post',
  })
}


export function FieldApplicationPoAudit(status,id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/FieldApplicationPoAudit?status='+status+'&id='+id,
    method: 'post',
  })
}


export function NotClockPoAudit(status,id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/NotClockPoAudit?status='+status+'&id='+id,
    method: 'post',
  })
}


export function CompanyActivitiesPoAudit(status,id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/CompanyActivitiesPoAudit?status='+status+'&id='+id,
    method: 'post',
  })
}


export function DepartmentActivityPoAudit(status,id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/DepartmentActivityPoAudit?status='+status+'&id='+id,
    method: 'post',
  })
}


export function WorkOvertimeLeavePoAudit(status,id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/WorkOvertimeLeavePoAudit?status='+status+'&id='+id,
    method: 'post',
  })
}

//删除------------------------------------------------

export function AskLeaveDelete(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/AskLeaveDelete',
    method: 'post',
    data:ids
  })
}

export function BusinessTravelRequestPoDelete(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/BusinessTravelRequestPoDelete',
    method: 'post',
    data:ids
  })
}
export function FieldApplicationPoDelete(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/FieldApplicationPoDelete',
    method: 'post',
    data:ids
  })
}

export function NotClockPoDelete(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/NotClockPoDelete',
    method: 'post',
    data:ids
  })
}

export function CompanyActivitiesPoDelete(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/CompanyActivitiesPoDelete',
    method: 'post',
    data:ids
  })
}

export function DepartmentActivityPoDelete(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/DepartmentActivityPoDelete',
    method: 'post',
    data:ids
  })
}


export function WorkOvertimeLeavePoDelete(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/WorkOvertimeLeavePoDelete',
    method: 'post',
    data:ids
  })
}

///////////////部门下拉
export function GetAllDepartment(ids) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetAllDepartment',
    method: 'get',
  })
}

//  考勤管理显示
export function AttendanceStatistics(depname,name,pageIndex,pageSize) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/AttendanceStatistics',
    method: 'get',
    params: {depname:depname,name:name,pageIndex:pageIndex,pageSize:pageSize },
  })
}

//考勤申请修改
export function AskLeavePoUpdate(Form) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/AskLeavePoUpdate',
    method: 'post',
    data: Form,
  })
}
export function BusinessTravelRequestPoUpdate(Form) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/BusinessTravelRequestPoUpdate',
    method: 'post',
    data: Form,
  })
}

export function FieldApplicationPoUpdate(Form) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/FieldApplicationPoUpdate',
    method: 'post',
    data: Form,
  })
}

export function NotClockPoUpdate(Form) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/NotClockPoUpdate',
    method: 'post',
    data: Form,
  })
}

export function CompanyActivitiesPoUpdate(form) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/CompanyActivitiesPoUpdate',
    method: 'post',
    data: form,
  })
}

export function DepartmentActivityPUpdate(Form) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/DepartmentActivityPUpdate',
    method: 'post',
    data: Form,
  })
}

export function WorkOvertimeLeaveUpdate(Form) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/WorkOvertimeLeaveUpdate',
    method: 'post',
    data: Form,
  })
}

export function GetPersonnel(depname) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetPersonnel',
    method: 'get',
    params: {depname:depname},
  })
}

//年假统计显示

export function GetAllAnnualLeaveStatisticsDto(depname,personnel,year) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetAllAnnualLeaveStatisticsDto',
    method: 'get',
    params: {depname:depname,name:personnel,year:year},
  })
}

//年假统计  Excel导出
export function GetContractExcel(depname,personnel,year) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetContractExcel',
    method: 'get',
    params: {depname:depname,name:personnel,year:year},
  })
}

//部门加班费显示
export function GetDepartmentOvertimeManagementPo(depname,year,month) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetDepartmentOvertimeManagementPo',
    method: 'get',
    params: {depname:depname,year:year,month},
  })
}
//部门加班费管理  Excel导出
export function GetDepartmentOvertimeExcel(depname,year,month) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetDepartmentOvertimeExcel',
    method: 'get',
    params: {depname:depname,year:year,month:month},
  })
}

//员工出勤显示
export function GetAllEmployeeAttendanceSettingsPo(depname,year,username) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetAllEmployeeAttendanceSettingsPo',
    method: 'get',
    params: {depname:depname,year:year,username:username},
  })
}

//员工出勤修改
export function UpdateEmployeeAttendanceSettingsPo(tabledata) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/UpdateEmployeeAttendanceSettingsPo',
    method: 'post',
    data:tabledata,
  })
}


//员工出勤显示
export function GetDepartmentListPo() {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetDepartmentListPo',
    method: 'get',
  })
}

//节假日设置
export function GetHolidaySettingsPo(year) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetHolidaySettingsPo',
    method: 'get',
    params: {year:year},
  })
}

export function DeleteHolidaySettingsPo(id) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/DeleteHolidaySettingsPo?id='+id,
    method: 'post',
  })
}

export function AddHolidaySeason(date) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/AddHolidaySeason?date='+date,
    method: 'post',
  })
}

export function AddSpecialWorkingDay(date) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/AddSpecialWorkingDay?date='+date,
    method: 'post',
  })
}


//年假设置
export function GetAnnualLeaveSetPo(depname,year) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetAnnualLeaveSetPo',
    method: 'get',
    params: {depname:depname,year:year},
  })
}


export function UpdateAnnualLeaveSetPo(tabledata) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/UpdateAnnualLeaveSetPo',
    method: 'post',
    data:tabledata
  })
}

//上传考勤
export function GetName() {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetName',
    method: 'get',
  })
}

export function GetUploadAttendancePo(year,month) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetUploadAttendancePo',
    method: 'get',
    params: {year:year,month:month},
  })
}

export function AddUploadAttendancePo(authorized_personnel) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/AddUploadAttendancePo?name='+authorized_personnel,
    method: 'post',
  })
}
//合同与项目综合统计
export function GetComprehensiveStatisticsContractsProjectsPo(depname,year) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetComprehensiveStatisticsContractsProjectsPo',
    method: 'get',
    params: {year:year,depname:depname},
  })
}

export function GetComprehensiveStatisticsContractsProjectsPoExcel(depname,year) {
  return myaxios({
    url: 'SystemManager/Attendance_Management/GetComprehensiveStatisticsContractsProjectsPoExcel',
    method: 'get',
    params: {year:year,depname:depname},
  })
}


